<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	request.setCharacterEncoding("utf-8");
	response.setCharacterEncoding("utf-8");
%>
<%@ page import="java.util.List" %>
<%@ page import="HotelRecommend.hotel" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>酒店推荐</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">	
  </head>
  
  <body>
   <div class="tab-content">
				<ul class="small-thumb">
				  <%
                   List<hotel> hotels=(List)request.getAttribute("hotels");
                   for(hotel h:hotels){
                %> 
					<li><a href="<%=h.getHotelurl()%>"><img class="hotel" src="<%=h.getImgurl()%>"
							alt="" width=150 height=120 border=0/> </a>
						<div class="entry">
							<h6>
								<a href="<%=h.getHotelurl()%>"><%=h.getHotelname() %></a>
							</h6>							
							<div class="hotelinfo">
								<a class="post-date"><span>人均消费</span> | <b><%=h.getPrice()%>元</b>     &nbsp&nbsp<span>评分</span> | <b><%=(int)h.getRating()%></b></a>
								<a class="post-date"> <br><b><%=h.getLabel()%></b>   &nbsp&nbsp<b><%=h.getRecommend()*100%></b>%用户推荐      <br><span>源自</span><b><%=h.getComment()%></b>位顾客点评</a>
							</div>
							<!--/ .entry-meta-->
							
							<!--/ .entry-meta-->
							<!--/ .entry-meta-->
							<div class="hotel">
								<a class="post-date"><span>详细地址</span> | <%=h.getAdress()%>【<%=h.getBusinessarea()%>】</a>
							</div>
							<!--/ .entry-meta-->
						</div> <!--/ .entry-->
						<div class="clear"></div></li> 
			<%
                }
                 %> 
				</ul>
			</div>
  </body>
</html>
